import './index.scss';

export default function OneLineOverview({monthResult}) {
    return (
        <div className='twoLineOverview'>
            <div className="item">
                <span className="money">{monthResult.pay.toFixed(2)}</span>
                <span className="type">支出</span>
            </div>
            <div className="item">
                <span className="money">{monthResult.income.toFixed(2)}</span>
                <span className="type">收入</span>
            </div>
            <div className="item">
                <span className="money">{monthResult.total.toFixed(2)}</span>
                <span className="type">结余</span>
            </div>
        </div>
    )
}